package org.ekingstar.qd.domain;

/**
 * AbstractQdDomainDestId entity provides the base persistence definition of the
 * QdDomainDestId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public abstract class AbstractQdDomainDestId implements java.io.Serializable {

	// Fields

	private QdDest TQdDest;
	private QdDomain TQdDomain;

	// Constructors

	/** default constructor */
	public AbstractQdDomainDestId() {
	}

	/** full constructor */
	public AbstractQdDomainDestId(QdDest TQdDest, QdDomain TQdDomain) {
		this.TQdDest = TQdDest;
		this.TQdDomain = TQdDomain;
	}

	// Property accessors

	public QdDest getTQdDest() {
		return this.TQdDest;
	}

	public void setTQdDest(QdDest TQdDest) {
		this.TQdDest = TQdDest;
	}

	public QdDomain getTQdDomain() {
		return this.TQdDomain;
	}

	public void setTQdDomain(QdDomain TQdDomain) {
		this.TQdDomain = TQdDomain;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractQdDomainDestId))
			return false;
		AbstractQdDomainDestId castOther = (AbstractQdDomainDestId) other;

		return ((this.getTQdDest() == castOther.getTQdDest()) || (this
				.getTQdDest() != null
				&& castOther.getTQdDest() != null && this.getTQdDest().equals(
				castOther.getTQdDest())))
				&& ((this.getTQdDomain() == castOther.getTQdDomain()) || (this
						.getTQdDomain() != null
						&& castOther.getTQdDomain() != null && this
						.getTQdDomain().equals(castOther.getTQdDomain())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getTQdDest() == null ? 0 : this.getTQdDest().hashCode());
		result = 37 * result
				+ (getTQdDomain() == null ? 0 : this.getTQdDomain().hashCode());
		return result;
	}

}